using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class ActivitiesInfo
    {
        #region CONSTRUCTORS
        public ActivitiesInfo()
        {
            this.m_logID = Util.NULL_LONG;
            this.m_tableName = Util.NULL_STRING;
            this.m_userID = Util.NULL_LONG;
            this.m_action = Util.NULL_STRING;
            this.m_doContent = Util.NULL_STRING;
            this.m_activityDate = Util.NULL_DATETIME;
        }
        public ActivitiesInfo(long logID, string tableName, long userID, string action, string doContent, DateTime activityDate)
        {
            this.m_logID = logID;
            this.m_tableName = tableName;
            this.m_userID = userID;
            this.m_action = action;
            this.m_doContent = doContent;
            this.m_activityDate = activityDate;
        }
        public ActivitiesInfo(DataRow dRow)
        {
            this.m_logID = (long)Util.ReplaceDBNullTo(dRow["logID"], Util.NULL_LONG);
            this.m_tableName = Util.ReplaceDBNullTo(dRow["tableName"], Util.NULL_STRING).ToString();
            this.m_userID = (long)Util.ReplaceDBNullTo(dRow["userID"], Util.NULL_LONG);
            this.m_action = Util.ReplaceDBNullTo(dRow["action"], Util.NULL_STRING).ToString();
            this.m_doContent = Util.ReplaceDBNullTo(dRow["doContent"], Util.NULL_STRING).ToString();
            this.m_activityDate = (DateTime)Util.ReplaceDBNullTo(dRow["activityDate"], Util.NULL_DATETIME);
        }
        #endregion

        #region ATTRIBUTES
        private long m_logID;
        private string m_tableName;
        private long m_userID;
        private string m_action;
        private string m_doContent;
        private DateTime m_activityDate;
        #endregion

        #region PROPERTIES
        public long LogID
        {
            get
            {
                return this.m_logID;
            }
            set
            {
                this.m_logID = value;
            }
        }

        public string TableName
        {
            get
            {
                return this.m_tableName;
            }
            set
            {
                this.m_tableName = value;
            }
        }

        public long UserID
        {
            get
            {
                return this.m_userID;
            }
            set
            {
                this.m_userID = value;
            }
        }

        public string Action
        {
            get
            {
                return this.m_action;
            }
            set
            {
                this.m_action = value;
            }
        }

        public string DoContent
        {
            get
            {
                return this.m_doContent;
            }
            set
            {
                this.m_doContent = value;
            }
        }

        public DateTime ActivityDate
        {
            get
            {
                return this.m_activityDate;
            }
            set
            {
                this.m_activityDate = value;
            }
        }

        #endregion

    }
}